// 一个菜单可以包括的所有属性 
// {
// 	id: '12345',		// 菜单id, 必须唯一
// 	name: '用户中心',		// 菜单名称, 同时也是tab选项卡上显示的名称
// 	icon: 'el-icon-user',	// 菜单图标, 参考地址:  https://element.eleme.cn/#/zh-CN/component/icon
//	info: '管理所有用户',	// 菜单介绍, 在菜单预览和分配权限时会有显示 
// 	url: 'sa-html/user/user-list.html',	// 菜单指向地址
// 	parent_id: 1,			// 所属父菜单id, 如果指定了一个值, sa-admin在初始化时会将此菜单转移到指定菜单上 
// 	is_show: true,			// 是否显示, 默认true
// 	is_blank: false,		// 是否属于外部链接, 如果为true, 则点击菜单时从新窗口打开 
// 	childList: [			// 指定这个菜单所有的子菜单, 子菜单可以继续指定子菜单, 至多支持三级菜单
// 		// .... 
// 	],
//	click: function(){}		// 点击菜单执行一个函数 
// }

// 定义菜单列表 
var menuList = [{
		id: '-1',
		name: '',
		info: '占位符',
		disabled: true
	},
	{
		id: '3',
		name: '表单管理',
		icon: 'el-icon-office-building',
		info: '表单管理',
		childList: [{
				id: '3-1',
				name: '表单列表',
				url: 'page/form/list.html'
			},
			{
				id: '3-3',
				name: '表单分类',
				url: 'page/form/type.html'
			},
			{
				id: '3-11',
				name: '新建表单',
				click: function() {
					sa_admin.showTab({
						id: '3-11',
						name: '新建表单',
						url: getFormUrl({
							path: 'index.html',
							params: '1',
							position: ''
						})
					});
				}
			},
		]
	},
	{
		id: '11',
		name: '数据录入',
		icon: 'el-icon-data-analysis',
		info: '数据录入',
		childList: [{
				id: '11-1',
				name: '科技合作台账',
				url: 'page/data-input/list.html?id=1399'
			},
			{
				id: '11-6',
				name: '屏山县78个贫困村帮扶力量名单',
				url: 'page/data-input/list.html?id=1026'
			},
			{
				id: '11-7',
				name: '全省贫困村驻村工作队管理台账',
				url: 'page/data-input/list.html?id=1027'
			},
			{
				id: '11-8',
				name: '科技人才台账',
				url: 'page/data-input/list.html?id=1030'
			},
			{
				id: '11-9',
				name: '项目储备台账',
				url: 'page/data-input/list.html?id=1031'
			},
			{
				id: '11-10',
				name: '项目实施基本情况（汇总）',
				url: 'page/data-input/list.html?id=1032'
			},
			{
				id: '11-11',
				name: '项目实施基本情况（分表）',
				url: 'page/data-input/list.html?id=1033'
			},
			{
				id: '11-12',
				name: '企业培育台账',
				url: 'page/data-input/list.html?id=1034'
			},
			{
				id: '11-13',
				name: '科技活动台账',
				url: 'page/data-input/list.html?id=1035'
			},
		]
	},
	{
		id: '5',
		name: '数据查询',
		icon: 'el-icon-s-data',
		info: '数据查询',
		childList: [{
				id: '5-1',
				name: '科技合作台账',
				url: 'page/data-search/list.html?id=1399'
			},
			{
				id: '5-6',
				name: '屏山县78个贫困村帮扶力量名单',
				url: 'page/data-search/list.html?id=1026'
			},
			{
				id: '5-7',
				name: '全省贫困村驻村工作队管理台账',
				url: 'page/data-search/list.html?id=1027'
			},
			{
				id: '5-8',
				name: '科技人才台账',
				url: 'page/data-search/list.html?id=1030'
			},
			{
				id: '5-9',
				name: '项目储备台账',
				url: 'page/data-search/list.html?id=1031'
			},
			{
				id: '5-10',
				name: '项目实施基本情况（汇总）',
				url: 'page/data-search/list.html?id=1032'
			},
			{
				id: '5-11',
				name: '项目实施基本情况（分表）',
				url: 'page/data-search/list.html?id=1033'
			},
			{
				id: '5-12',
				name: '企业培育台账',
				url: 'page/data-search/list.html?id=1034'
			},
			{
				id: '5-13',
				name: '科技活动台账',
				url: 'page/data-search/list.html?id=1035'
			},
		]
	},
	{
		id: '9',
		name: '领导审批',
		icon: 'el-icon-folder-checked',
		info: '领导审批',
		childList: [{
				id: '9-1',
				name: '科技合作台账',
				url: 'page/data-approval/list.html?id=1399'
			},
			{
				id: '9-6',
				name: '屏山县78个贫困村帮扶力量名单',
				url: 'page/data-approval/list.html?id=1026'
			},
			{
				id: '9-7',
				name: '全省贫困村驻村工作队管理台账',
				url: 'page/data-approval/list.html?id=1027'
			},
			{
				id: '9-8',
				name: '科技人才台账',
				url: 'page/data-approval/list.html?id=1030'
			},
			{
				id: '9-9',
				name: '项目储备台账',
				url: 'page/data-approval/list.html?id=1031'
			},
			{
				id: '9-10',
				name: '项目实施基本情况（汇总）',
				url: 'page/data-approval/list.html?id=1032'
			},
			{
				id: '9-11',
				name: '项目实施基本情况（分表）',
				url: 'page/data-approval/list.html?id=1033'
			},
			{
				id: '9-12',
				name: '企业培育台账',
				url: 'page/data-approval/list.html?id=1034'
			},
			{
				id: '9-13',
				name: '科技活动台账',
				url: 'page/data-approval/list.html?id=1035'
			},
		]
	},
	{
		id: '12',
		name: '数据汇总',
		icon: 'el-icon-discount',
		info: '数据汇总',
		url: 'page/data-statistics/list.html'
	},
	{
		id: '13',
		name: '分析展示',
		icon: 'el-icon-view',
		info: '分析展示',
		click: function() {
			sa.ok2('开发完善中')
		}
	},
	{
		id: '14',
		name: '消息通知',
		icon: 'el-icon-s-comment',
		info: '消息通知',
		value: 0,
		childList: [{
				id: '14-2',
				name: '审批消息',
				url: 'page/msg/list.html?type=2',
				value: 0,
			},
			{
				id: '14-3',
				name: '数据提交消息',
				url: 'page/msg/list.html?type=3',
				value: 0,
			},
			{
				id: '14-1',
				name: '系统消息',
				url: 'page/msg/list.html?type=1',
				value: 0,
			},
		]
	},
	{
		id: '7',
		name: '权限控制',
		icon: 'el-icon-unlock',
		info: '对系统角色权限的分配等设计，敏感度较高，请谨慎授权',
		childList: [{
				id: '7-1',
				name: '角色列表',
				url: 'page/auth/role.html'
			},
			{
				id: '7-2',
				name: '菜单列表',
				url: 'page/auth/menu-list.html'
			},
			{
				id: '7-3',
				name: '用户账户',
				url: 'page/auth/account.html'
			}
		]
	},
	{
		id: '8',
		name: '用户管理',
		icon: 'el-icon-user',
		info: '对用户列表、添加、统计等等...',
		childList: [{
				id: '8-1',
				name: '基本信息',
				url: 'page/account/user-list.html'
			},
			// {
			// 	id: '8-3',
			// 	name: '用户统计',
			// 	childList: [{
			// 		id: '1-3-1',
			// 		name: '注册量统计',
			// 		url: 'sa-html/user/user-chart.html'
			// 	}]
			// }
		]
	},
	{
		id: '10',
		name: '个人中心',
		icon: 'el-icon-s-custom',
		info: '个人中心',
		url: 'page/auth/account-info.html',
	},
	{
		id: '4',
		name: '系统配置',
		icon: 'el-icon-setting',
		info: '系统配置',
		childList: [{
				id: '4-1',
				name: '基础配置',
				url: 'page/config/config.html',
				icon: '',
				identity: 'base:all',
			},
			{
				id: '4-2',
				name: '功能配置',
				url: 'page/config/function.html',
				icon: '',
				identity: 'function:get',
			},
			{
				id: '4-3',
				name: '接口配置',
				url: 'page/config/api.html',
				icon: '',
				identity: 'api:get,post',
			},
			{
				id: '4-4',
				name: '附件管理',
				url: 'page/config/file.html',
				icon: '',
				identity: 'file:get,post,delete',
			},
			{
				id: '4-5',
				name: '类别管理',
				url: 'page/config/type.html',
				icon: '',
				identity: 'file:get,post,delete',
			},
		]
	},
	{
		id: '15',
		name: '退出系统',
		icon: 'el-icon-switch-button',
		info: '退出系统',
		click: function() {
			sa.confirm('退出登录？', function(res) {
				sa.ajax2('/acc/exit', function(res) {
					sa.alert('注销成功', function() {
						location.href = "login.html";
					})
				}, {
					msg: '正在注销'
				})
			});
		}
	},
]
